﻿from django.conf.urls.defaults import *

urlpatterns = patterns('',
    (r'^$', 'app.engine.views.index'),
    (r'^admin/export/$', 'app.engine.admin.exportXML'),
    (r'^admin/import/$', 'app.engine.admin.importItemsDB'),
    (r'^admin/$', 'app.engine.admin.adminConsole'),
    (r'^admin/del/(?P<item_id>[^\.^/]+)/$', 'app.engine.admin.adminDelItem'),
    (r'^admin/add/$', 'app.engine.admin.adminAddItem'),
    (r'^admin/edit/(?P<item_id>[^\.^/]+)/$', 'app.engine.admin.adminEditItem'),
    (r'^console/userinfo/$', 'app.engine.views.console_userinfo'),
    (r'^console/card/$', 'app.engine.views.console_compute_card'),
    (r'^console/$', 'app.engine.views.console_compute_card'),
    (r'^console/init/$', 'app.engine.views.console_init'),
    (r'^console/init/(?P<items_json>[^\.^/]+)/$', 'app.engine.views.console_init'),
#    (r'^feed/$', 'app.engine.views.index_list'),
#    (r'^feed/(?P<user_id>[^\.^/]+)/$', 'app.engine.views.gettheuser'),
#    (r'^api/(?P<user_id>[^\.^/]+)/$', 'app.engine.views.userQueryApi'),
#    (r'^user/(?P<user_id>[^\.^/]+)/$', 'app.engine.views.gettheuser'),
#    (r'^url/(?P<user_id>[^\.^/]+)/$', 'app.engine.views.get_user_query_url'),
#    (r'^atom/$', 'app.engine.views.userQueryFeed'),
#    (r'^query/(?P<user_id>[^\.^/]+)/$', 'app.engine.views.UserQueryUrl'),
#    (r'^admin/site/$', 'app.engine.pub.adminSiteConfig'),
)

